import request from '@/utils/request'
import qs from 'qs'

export function getStoredValue(params) {
  const data = {
    ...params
  }
  return request({
    url: '/merchant/config/store',
    method: 'get',
    params: data
  })
}
export function storedValue(params) {
  const data = {
    ...params
  }
  return request({
    url: '/merchant/config/store',
    method: 'post',
    data: qs.stringify(data)
  })
}
// 房时
export function getRoomTime(params) {
  const data = {
    ...params
  }
  return request({
    url: '/merchant/config/shopExtend',
    method: 'get',
    params: data
  })
}
export function postRoomTime(params) {
  const data = {
    ...params
  }
  return request({
    url: '/merchant/config/shopExtend',
    method: 'post',
    data: qs.stringify(data)
  })
}
// 便利店
export function getConvenienceStore(params) {
  const data = {
    ...params
  }
  return request({
    url: '/merchant/config/seller',
    method: 'get',
    paarams: data
  })
}
export function convenienceStore(params) {
  const data = {
    ...params
  }
  return request({
    url: '/merchant/config/seller',
    method: 'post',
    data: qs.stringify(data)
  })
}
export function getCode(params) {
  const data = {
    ...params
  }
  return request({
    url: '/merchant/qrcode/info',
    method: 'get',
    params: data
  })
}
